new Vue({
	methods:{
		// 获取用户列表
		findAll:function(){
		   var _this = this;
		   axios({
			    method: 'post',
			    url: 'file/test',
			    responseType: 'blob'
		   }).then(function(res){
			    console.log(res);
			    let url = window.URL.createObjectURL(new Blob([res.data]))
		        let link = document.createElement('a')
		        link.style.display = 'none'
		        link.href = url
		        link.setAttribute('download',res.headers.filename)
		        document.body.appendChild(link)
		        link.click()
		   }).catch(function(err){
			   console.log(err);
		   })
		}
	},
	created: function() {
		this.findAll();
	}
	
});